﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
public partial class uc_newsdetail : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {     
        if (!IsPostBack)
        {
            int nid=0, gid=0;
            if (Request.QueryString["nid"] != null)
                nid=int.Parse("0"+Request.QueryString["nid"].ToString());
            if (Request.QueryString["gid"] != null)
                gid=int.Parse("0"+Request.QueryString["gid"].ToString());           
            ltNewsDetail.Text = new CmsBLL().RenderNewsDetail(CommonBLL.SiteID, nid, gid);       
            
        }

    }    
}